﻿@model prufa.Models.UserProfile

@{
    ViewBag.Title = "Breyta";
}

<h2>Breyta</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>UserProfile</legend>

        @Html.HiddenFor(model => model.UserId)

        
        <div class="editor-field">
            Notendanafn: 
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-field">
            Netfang: 
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        
        <div class="editor-field">
            Er notandi bannaður? 
            @Html.EditorFor(model => model.IsBanned)
            @Html.ValidationMessageFor(model => model.IsBanned)
        </div>

        <div class="editor-field">
            Gerðist meðlimur: 
            @Html.DisplayFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </div>

        <div class="editor-field">
            Prófílmynd: 
            @Html.EditorFor(model => model.Avatar)
            @Html.ValidationMessageFor(model => model.Avatar)
        </div>

        <p>
            <input id="awesomeButton" type="submit" value="Staðfesta Breytingar" />
            @Html.ActionLink("Aftur í lista", "AdminUserList")
        </p>
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
